<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateAppConfigInfoTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('config_info', function(Blueprint $table)
		{
			$table->integer('id', true);
			$table->string('name', 20);
			$table->string('title', 50);
			$table->text('value', 65535)->nullable();
			$table->text('desc', 65535)->nullable();
			$table->integer('type_id')->nullable();
			$table->string('value_type', 20)->nullable();
			$table->string('options')->nullable();
			$table->integer('sort')->nullable();
			$table->dateTime('create_time')->nullable();
			$table->dateTime('update_time')->nullable();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('app_config_info');
	}

}
